SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 40329: "ERROR: Informat n. is incorrect for variable X." received when closing the Column Attributes window in Viewtable

DetailsAboutRate It

When specifying a user-defined format for a column, you might receive an informat error upon exiting the Column Attributes window.

To illustrate, submit the following code within the SAS Editor window:

   proc format;
      value foo
         1="This is a long label greater than 32 characters";
   run;

   data test;
      format x foo.;
      x=1;
   run;

Open the table into Viewtable, and open the Column Attributes window for column X. You will see the following information:

   Format: Foo47.
   Informat: 47.

End out of the Column Attributes window and you will see the following error in the SAS log:

    ERROR: Informat 47. is incorrect for variable x.

This error appears to occur if you have not specified a similar user-defined informat for the column, and when the width of the formatted value is greater than 32. If the length of the formatted value is less than 32, this error does not occur. Also, if a similar informat is specified, then this error does not occur.

Because Viewtable enables you to both view and edit your data, as a best practice, when using Viewtable to edit data, you should create corresponding informats for your user-defined formats.

For example, you can define a similar informat to the above format by using code like the following:

  proc format;
     invalue foo
      "This is a long label greater than 32 characters"=1 other=0;
  run;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9 TS M09.4 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9 TS M09.4 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9 TS M09.4 TS1M0
Microsoft Windows 2000 Advanced Server9 TS M0
Microsoft Windows 2000 Datacenter Server9 TS M0
Microsoft Windows 2000 Server9 TS M0
Microsoft Windows 2000 Professional9 TS M0
Microsoft Windows NT Workstation9 TS M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M09.4 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M09.4 TS1M0
Microsoft Windows Server 2003 Standard Edition9 TS M09.4 TS1M0
Microsoft Windows XP Professional9 TS M09.4 TS1M0
64-bit Enabled AIX9 TS M09.4 TS1M0
64-bit Enabled HP-UX9 TS M09.4 TS1M0
64-bit Enabled Solaris9 TS M09.4 TS1M0
HP-UX IPF9 TS M09.4 TS1M0
Linux9 TS M09.4 TS1M0
OpenVMS Alpha9 TS M09.4 TS1M0
Tru64 UNIX9 TS M09.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.